<template>
  <div class="employees-container">
    <div class="app-container">
      <el-card>
        <el-tabs>
          <el-tab-pane label="登录账户设置">
            <LoginSetting />
          </el-tab-pane>
          <el-tab-pane label="个人详情">
            <UserInfo />
          </el-tab-pane>
          <el-tab-pane label="岗位信息">
            <JobInfo />
          </el-tab-pane>
        </el-tabs>
      </el-card>
    </div>
  </div>
</template>

<script>
import LoginSetting from './components/login-setting'
import UserInfo from './components/user-info'
import JobInfo from './components/job-info'

export default {
  components: {
    LoginSetting,
    UserInfo,
    JobInfo
  },
  data() {
    return {
      id: ''
    }
  },
  created() {
    // 路径参数params
    this.id = this.$route.params.id
    console.log(this.id)

    // query
    // this.id = this.$route.query.id
    // console.log(this.id)
  }
}
</script>
